<?php 
header("Content-type:text/html;charset=utf-8");
require_once('inc_admin.php');
connect();
$data=array(
	'videoname'=>trim($_POST['videoname'])
	);
$result=add('videoname',$data);
if(!$result){
	echo "添加失败！<br/>";
	echo "<a href='videoForm.html'>返回</a>";
}
else{
	redirect('videoList.php','添加成功!');
}

 ?>